package sbt.selenium.pages;

import org.openqa.selenium.WebDriver;

/*
 * Abstract class representation of a Page in the UI. Page object pattern
 * 
 * @author Sebastiano Armeli-Battana
 */
public abstract class PageOld {

        protected WebDriver webDriver;

        /*
         * Constructor injecting the WebDriver interface
         * 
         * @param webDriver
         */
        public PageOld(WebDriver webDriver) {
                this.webDriver = webDriver;
        }

        public WebDriver getWebDriver() {
                return webDriver;
        }

        public String getTitle() {
                return webDriver.getTitle();
        }

}